package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecordMoneysMapper;
import com.ruoyi.system.domain.RecordMoneys;
import com.ruoyi.system.service.IRecordMoneysService;

/**
 * 店铺提现记录Service业务层处理
 *
 * @author ruoyi
 * @date 2021-03-09
 */
@Service
public class RecordMoneysServiceImpl implements IRecordMoneysService
{
    @Autowired
    private RecordMoneysMapper recordMoneysMapper;

    /**
     * 查询店铺提现记录
     *
     * @param id 店铺提现记录ID
     * @return 店铺提现记录
     */
    @Override
    public RecordMoneys selectRecordMoneysById(Integer id)
    {
        return recordMoneysMapper.selectRecordMoneysById(id);
    }

    /**
     * 查询店铺提现记录列表
     *
     * @param recordMoneys 店铺提现记录
     * @return 店铺提现记录
     */
    @Override
    public List<RecordMoneys> selectRecordMoneysList(RecordMoneys recordMoneys)
    {
        return recordMoneysMapper.selectRecordMoneysList(recordMoneys);
    }

    /**
     * 新增店铺提现记录
     *
     * @param recordMoneys 店铺提现记录
     * @return 结果
     */
    @Override
    public int insertRecordMoneys(RecordMoneys recordMoneys)
    {
        return recordMoneysMapper.insertRecordMoneys(recordMoneys);
    }

    /**
     * 修改店铺提现记录
     *
     * @param recordMoneys 店铺提现记录
     * @return 结果
     */
    @Override
    public int updateRecordMoneys(RecordMoneys recordMoneys)

    {
        System.out.println(recordMoneys);
            return recordMoneysMapper.updateRecordMoneys(recordMoneys);
    }

    /**
     * 批量删除店铺提现记录
     *
     * @param ids 需要删除的店铺提现记录ID
     * @return 结果
     */
    @Override
    public int deleteRecordMoneysByIds(Integer[] ids)
    {
        return recordMoneysMapper.deleteRecordMoneysByIds(ids);
    }

    /**
     * 删除店铺提现记录信息
     *
     * @param id 店铺提现记录ID
     * @return 结果
     */
    @Override
    public int deleteRecordMoneysById(Integer id)
    {
        return recordMoneysMapper.deleteRecordMoneysById(id);
    }

    @Override
    public List<RecordMoneys> selectListAll(RecordMoneys recordMoneys) {
        return recordMoneysMapper.selectListAll(recordMoneys);
    }
}
